package com.guigu.youxuan.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.guigu.youxuan.common.utils.PageUtils;
import com.guigu.youxuan.pojo.GoodsCategory;
import com.guigu.youxuan.pojo.GoodsInfo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author liweixin
 * @since 2024-05-15
 */
public interface IGoodsCategoryService extends IService<GoodsCategory> {
    /**
     * 一级商品分类查询
     * @return
     */
    List<GoodsCategory> GoodsCategoryNameList();


    List<Integer> queryGoodsTypeLevel();

    PageUtils<GoodsCategory> getGoodsCategoryList(GoodsCategory goodsCategory, int currentPage, int pageSize);

    void switchStatus(GoodsCategory goodsCategory);

    void addGoodsType(GoodsCategory goodsCategory);

    GoodsCategory queryGoodsTypeById(Long goodsTypeId);

    List<GoodsCategory> queryGoodsCategoryList();

    void updateGoodsCategory(GoodsCategory goodsCategory);

    void delGoodsCategory(GoodsCategory goodsCategory);

    void delsGoodsCategory(List<GoodsCategory> goodsCategoryList);
}
